#ifndef FILELOGGER_H
#define FILELOGGER_H

#include "Log.h"

namespace Cvekas {

/// Implementation of LogListner for writing log in tex file
class FileLogListener: public LogListener
{
public:
	/// Constructor
	/// \param filename Log filename 
	FileLogListener(const std::string& filename);

	/// Destructor
	virtual ~FileLogListener();
	
	virtual void add();
	virtual void remove();
	virtual void sendMsg(const std::string& msg);

private: 
	std::ofstream file;
};

typedef boost::shared_ptr<FileLogListener> FileLogListenerPtr;

} // namespace

#endif
